package org.tissou.server.Services;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.tissou.client.Services.TauxConversionService;
import org.tissou.client.Services.TauxConversionInfos;
import org.tissou.client.Services.MonnaieInfos;
import org.tissou.client.Services.MonException;

import java.util.Date;

import org.tissou.server.Utils.TelechargeurDeTaux;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 24-Mar-2009
 * Time: 18:35:15
 * To change this template use File | Settings | File Templates.
 */
public class TauxConversionServiceImpl extends RemoteServiceServlet implements TauxConversionService {
  public TauxConversionInfos RetournerTaux(Date d, MonnaieInfos monnaie_initiale,
                                           MonnaieInfos monnaie_finale) throws MonException {
    TelechargeurDeTaux t = new TelechargeurDeTaux();
    return t.allerChercherTaux(d, monnaie_initiale, monnaie_finale);
  }
}